<template>
	<view class="flex align-start px-2" :style="isSelf ? 'flex-direction:row-reverse;' :''">
		<image src="/static/common/nothing.png" mode="" class="rounded-circle" style="width: 100rpx;height: 100rpx;"></image>
		<view class="bg-light p-2 mx-2 rounded" style="max-width: 400rpx;min-width: 100rpx;">
			{{item.data}}
		</view>
	</view>
</template>

<script>
	// 模拟当前的登录用户
	const uid = 1;
	export default{
		props:{
			item:Object,
			index:Number
		},
		computed:{
			isSelf(){
				return this.item.user_id===uid
			}
		},
	}
</script>

<style>
</style>
